package inherit.homework2;

public class Rabbit extends Animal {
    public Rabbit() {
    }

    public Rabbit(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(super.getName()+"正在吃草！");

    }
}
